﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ArxivatDeDocuments.ObjectesDeDades
{
    class Document
    {
        public Exercici exercici { get; set; }
        public Periode periode { get; set; }
        public Impost impost { get; set; }
        public Client client { get; set; }

        public FileInfo Fitxer { get; set; }

        public override string ToString()
        {
            return exercici.ToString() + "-" + periode.Codi + "-MODEL-" + impost.Codi + "-" + client.Nif;
        }

        public string ToString(int NumeroComplementaria)
        {
            return exercici.ToString() + "-" + periode.Codi + "-MODEL-" + impost.Codi + "-COMPLEMENTARIA-" + NumeroComplementaria+"-" + client.Nif;
        }

    }
}
